package com.ruoyi.web.controller.applet;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.HospitalSubscribeMedicalExamType;
import com.ruoyi.system.domain.HospitalSubscribeMedicalExaminerInfo;
import com.ruoyi.system.service.IHospitalSubscribeMedicalExamTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 体检项目类型Controller
 *
 * @author ruoyi
 * @date 2025-04-26
 */
@RestController
@RequestMapping("/applet/type")
public class HospitalSubscribeMedicalExamTypeAppletController extends BaseController {
    @Autowired
    private IHospitalSubscribeMedicalExamTypeService hospitalSubscribeMedicalExamTypeService;

    /**
     * 查询体检项目类型包含套餐内容及套餐内的项目
     * @response {@link HospitalSubscribeMedicalExamType}
     */
    @GetMapping("/getMedicalExamTypeAll")
    public TableDataInfo list(HospitalSubscribeMedicalExamType hospitalSubscribeMedicalExamType) {
        hospitalSubscribeMedicalExamType.setIsEnable(0);
        List<HospitalSubscribeMedicalExamType> list = hospitalSubscribeMedicalExamTypeService.getMedicalExamTypeAll(hospitalSubscribeMedicalExamType);
        return getDataTable(list);
    }

}
